class Cache {
	
	set(key, value) {
		uni.setStorageSync(key, value)
	}
	
	get(key) {
		const val = uni.getStorageSync(key);
		if(val) {
			return val;
		}
	}
	
	clear() {
		uni.clearStorageSync();
	}
	
}

export default new Cache();